package endcourseproject;



public class RobotInfo
{		
	private RobotStatusMsg statusMsg = null;


	private int _signalStrength = 0;
	public int getSignalStrength()
	{
		return _signalStrength;
	}
	public void setSignalStrength(int signal)
	{
		_signalStrength = signal;
	}
	
	private byte[] _address = null;
	public byte[] getAddress()
	{
		return _address;
	}
	public void setAddress(byte[] address)
	{
		_address = address;
	}
	
	public boolean equals(byte[] addr)
	{
		if( _address != null )
		{
			if( this._address.length == addr.length)
			{
				return Utils.Equals(this._address, addr);
			}
		}

		return false;
	}
	
	public boolean equals(RobotInfo other)
	{
		boolean equals = this._address == other._address;
		
		return equals;
	}

	public RobotStatusMsg getStatusMsg() {
		return statusMsg;
	}
	public void setStatusMsg(RobotStatusMsg statusMsg) {
		this.statusMsg = statusMsg;
	}

}
